package com.example.springbootdemo1.service;

import com.example.springbootdemo1.entity.User;
import com.example.springbootdemo1.entity.VO.LoginUser;
import com.example.springbootdemo1.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService{
    @Autowired
    UserMapper userMapper;

    @Override
    public User getuser(LoginUser loginUser) {
        return userMapper.getuser(loginUser);
    }

    @Override
    public User getuserById(Integer userId) {
        return userMapper.getuserById(userId);
    }
}
